from scrapy import cmdline
cmdline.execute()